<extend name="Index::index" />
<block name="table">
	<div class="agoods_nav">
		<span>订单管理</span>
	</div>
	<table class="table"  border="1" cellspacing="0" cellpadding="5" align="center">

		<tr bgcolor="#ccc">
			<th>订单号</th>
			<th>收货地址</th>
			<th>是否付款</th>
			<th>是否发货</th>
			<th>收货人</th>
			<th>操作</th>
		</tr>
		<foreach name="list" item="val">
			<tr>
				<td>{$val['olo']}</td>
				<td>{$val['address']}</td>
				<td>
					<if condition="$val['is_fu'] eq 1" >
						已付款
         			<else />
						未付款
         			</if>
				</td>
				<td style="color:red">
					<if condition="$val['is_show'] eq 0">
		 				<a href="{:U('Order/is_show',['id'=>$val['id']])}">发货</a>
		 			<elseif condition="$val['is_show'] eq 1"/>
		 				已发货
		 			<elseif condition="$val['is_show'] eq 2"/>
		 				已签收
		 			</if>	
				</td>
				<td>{$val['name']}</td>
				<td>
					<a href="{:U('Order/del',['id'=>$val['id']])}">删除</a>
				</td>
			</tr>
		</foreach>
			<tr>
				<td colspan="6">{$Page}</td>
			</tr>
	</table>
</block>